﻿using Domain.Model.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ValidBox4Mvc.ValidRules;

namespace Domain.Model
{
    /// <summary>
    /// 公司账户
    /// </summary>
    public class CompanyAccount : Entity
    {
        /// <summary>
        /// 银行ID
        /// </summary>
        //[Required]
        //public Guid BankId { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        [Required]
        [Length(40)]
        public string CardNo { get; set; }

        /// <summary>
        /// 户主
        /// </summary>
        [Required]
        [Length(20)]
        public string Owner { get; set; }

        /// <summary>
        /// 描述信息
        /// </summary>
        [Required]
        [Length(40)]
        public string Description { get; set; }

        public Bank Bank { get; set; }
    }
}
